package com.pig4cloud.pig.module.api.entity.mer;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig4cloud.pig.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 商家的自有会员对象 mer_self_vip
 *
 * @author ruoyi
 * @date 2023-05-28
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mer_self_vip")
public class MerSelfVip implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @Excel(name = "会员卡号")
	private String cardNum;

    /**
     * 商家id
     */
    private Integer merId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String realName;

    /**
     * 手机号
     */
    private String phoneNum;

    /**
     * 生日
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    /**
     *  累积充值金额
     */
    @Excel(name = "充值金额")
    private BigDecimal rechargeTotalMoney;

    /**
     * 会员余额
     */
    private BigDecimal accountMoney;

    /**
     * 消费金额
     */
    @TableField(exist = false)
    private Double money;

    /**
     * 微信用户id
     */
    private Integer wxUserId;

    /**
     * 会员等级  1 - 普通会员  2 - 高级会员
     */
    private Integer vipLevel;

    /**
     * 车牌号
     */
    private String carNum;

	/**
	 * 会员二维码，用于绑定和其他操作
	 */
	private String qrCode;

    /**
     * 是否已删除 0 - 未删除  1 - 已删除
     */
	private Integer isDel;

    /**
     *  当前要充值的金额
     */
    @TableField(exist = false)
    private BigDecimal rechargeMoney;


	@TableField(exist = false)
	private String nickName;

	@TableField(exist = false)
	private String faceUrl;
}
